package fox.framework.rpc.client.node.event;

import fox.framework.rpc.client.node.RpcNode;
import fox.framework.rpc.context.event.RpcEventListener;

/**
 * @author cuichao
 * @Description: NodeChannelCloseListener
 * @Date: create in 2021/2/12 21:22
 */
public interface NodeChannelCloseListener extends RpcEventListener<NodeChannelCloseEvent> {

    @Override
    default void onEvent(NodeChannelCloseEvent event) {
        RpcNode node = event.getNode();
        channelCloseListener(node);
    }

    /**
     * 通道关闭监听
     * @param node
     */
     void channelCloseListener(RpcNode node);


}
